def printbuffer():
    ...